<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>doc_user--稻壳网CMS标签文档</title>
<meta name="keywords" content="稻壳CMS，稻壳CMS标签，稻壳CMS模版" />
<meta name="description" content="稻壳CMS官方标签文档。稻壳CMS官方网站www.doccms.com" />
<meta name="author" content="doccms：www.weibo.com/doccms">
<link rel="stylesheet" href="../img/help.css" type="text/css" />
<script src="../img/jquery-1.7.2.min.js"></script>
<script src="../img/jquery.easing.1.3.js"></script>
<script src="../img/common.js"></script>
</head>
<body>
<div class="top">
	<div class="header">
		<a href="http://www.doccms.com/faq/" target="_blank" title="稻壳网帮助中心"><img src="../img/doooc_logo.png" class="logo" /></a><span id="lab">标签文档 X1.0<sub>[本标签文档适用于稻壳平台多用户版和稻壳CMS X1.0]</sub></span>
	</div>
</div>
<div id="bd">
	<div class="left">
		<div class="sidenav">
			<h2>稻壳CMS标签文档</h2>
            <ul class="subnav"></ul>
			<h4></h4>
		</div>
	</div>
	<div class="right">
		<h2><a href="../default.html">标签首页</a>&gt;&gt;<a href="index.html">@模块应用、调用标签</a>&gt;&gt;<a href="#">doc_user</a></h2>
		<h3 class="how">1、首页会员模块的栏目数据调用标签</h3>
<!--功能说明开始-->
<fieldset>
<legend>功能说明：</legend>
<p>此标签主要在模板index.php和common.php(包含自定义单独common页) 中html代码部分输出要调用的地图展示模块的数据.</p>
</fieldset>		
<!--功能说明结束-->
<label>代码示例</label>
<!--code代码的样式开始-->
<div class="blockcode">
<ol>
<li>&lt;?php doc_user_login($sid,$style=0) ?&gt;  //会员登录样式标签</li>
<li>&lt;?php doc_user_regist($sid,$style=0) ?&gt;  //会员注册样式标签</li>
<li></li>
<li>&lt;?php doc_user_login() ?&gt;</li>
<li>&lt;?php doc_user_regist() ?&gt;</li>
<li></li>
<li>&lt;?php doc_user_login(1,0) ?&gt;</li>
<li>&lt;?php doc_user_regist(1,0) ?&gt;</li>
</ol>
</div>
<!--code代码的样式结束-->
<hr />
<label>参数说明</label>
<div class="param">
   <ul>
     <li><b>$sid：</b>调用会员模块的频道或栏目ID；</li>
     <li><b>$style：</b>调用文件名为user_0、user_1、user_2……的php样式文件，其保存于模板下的index/user/文件夹下，表示会员数据的不同显示样式，$style为下载不同显示样式文件的数字后缀。</li>
   </ul>
</div>
<label>标签样式文件代码示例一</label>
<!--code代码的样式开始-->
<div class="blockcode">
<ol>
<li>&lt;style&gt;<br />
  .shlcms_login { width:50px; height:20px; border:1px solid #ccc; -moz-border-radius:3px; border-radius:3px; cursor:pointer; background:-webkit-gradient(linear, 0 100%, 0 0, from(#E6E4E0), to(#ffffff)); background:-moz-linear-gradient(top, #ffffff, #E6E4E0); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#E6E4E0');<br />
  -ms-filter: &quot;progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#E6E4E0')&quot;; }<br />
  &lt;/style&gt;<br />
  &lt;script&gt;<br />
  function validator()<br />
  {<br />
if(document.getElementById('username').value==&quot;&quot;)<br />
{alert(&quot;请输入用户名!&quot;); document.getElementById('username').focus(); return false;}<br />
if(document.getElementById('pwd').value==&quot;&quot;)<br />
{alert(&quot;请输入密码!&quot;);document.getElementById('pwd').focus();return false;}<br />
else{document.getElementById('form1').submit();}<br />
}<br />
&lt;/script&gt;<br />
&lt;div id=&quot;stuffbox&quot;&gt;<br />
&lt;form name=&quot;form1&quot; id=&quot;form1&quot; method=&quot;post&quot; action=&quot;&lt;?php echo sys_href($sid,'user','login'); ?&gt;&quot; onsubmit=&quot;return validator()&quot;&gt;<br />
&lt;table border=&quot;0&quot; id=&quot;tbguest&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;用户名：&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;username&quot; id=&quot;username&quot; size=&quot;20&quot; type=&quot;text&quot; onMouseOver=&quot;this.style.borderColor='#9ecc00'&quot; onMouseOut=&quot;this.style.borderColor='#D2D9D8'&quot; /&gt;<br />
&lt;font color=&quot;Red&quot;&gt;*&lt;/font&gt;&lt;span id=&quot;username_info&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;密码：&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;pwd&quot; id=&quot;pwd&quot; size=&quot;20&quot; type=&quot;password&quot; onMouseOver=&quot;this.style.borderColor='#9ecc00'&quot; onMouseOut=&quot;this.style.borderColor='#D2D9D8'&quot; /&gt;<br />
&lt;font color=&quot;Red&quot;&gt;*&lt;/font&gt;&lt;span id=&quot;pwd_info&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;验证码：&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;checkcode&quot; id=&quot;checkcode&quot; size=&quot;8&quot; type=&quot;text&quot; onMouseOver=&quot;this.style.borderColor='#9ecc00'&quot; onMouseOut=&quot;this.style.borderColor='#D2D9D8'&quot; /&gt;<br />
&lt;img src=&quot;&lt;?php echo $tag['path.root']?&gt;/inc/verifycode.php&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;Submit&quot; name=&quot;Submit&quot; value=&quot;登录&quot; class=&quot;shlcms_login&quot; /&gt;<br />
&lt;a href=&quot;&lt;?php echo sys_href($sid,'user','reg'); ?&gt;&quot;&gt;注册&lt;/a&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
&lt;/div&gt; </li>
<li>//会员模块的登录样式</li>
</ol>
</div>
<!--code代码的样式结束-->
<label>标签样式文件代码示例二</label>
<!--code代码的样式开始-->
<div class="blockcode">
<ol>
<li>&lt;style&gt;<br />
  .shlcms_reg{ width:50px; height:20px; border:1px solid #ccc; -moz-border-radius:3px;border-radius:3px; cursor:pointer;<br />
background:-webkit-gradient(linear, 0 100%, 0 0, from(#E6E4E0), to(#ffffff));<br />
background:-moz-linear-gradient(top, #ffffff, #E6E4E0);<br />
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#E6E4E0');<br />
-ms-filter: &quot;progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#E6E4E0')&quot;; <br />
}<br />
#tbguest span{ color:#FF3300; margin:0 3px 0 8px;}<br />
#tbguest input{ margin-left:8px;}<br />
#tbguest select{ margin-left:8px;}<br />
&lt;/style&gt;<br />
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $tag['path.root']; ?&gt;/inc/js/form/FormValid.js&quot;&gt;&lt;/script&gt; <br />
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $tag['path.root']; ?&gt;/inc/js/form/FV_onBlur.js&quot;&gt;&lt;/script&gt; <br />
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $tag['path.root']; ?&gt;/inc/js/form/valiUser.js&quot;&gt;&lt;/script&gt; <br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
&lt;!--<br />
FormValid.showError = function(errMsg,errName,formName) {<br />
for (key in FormValid.allName) {<br />
document.getElementById('errMsg_'+FormValid.allName[key]).innerHTML = '';<br />
}<br />
for (key in errMsg) {<br />
document.getElementById('errMsg_'+errName[key]).innerHTML = errMsg[key];<br />
}<br />
}<br />
--&gt;<br />
&lt;/script&gt;<br />
&lt;div id=&quot;stuffbox&quot;&gt;<br />
&lt;p&gt;&lt;b&gt;用户注册&lt;/b&gt;&lt;br/&gt;<br />
&lt;/p&gt;<br />
&lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&lt;?php echo sys_href($sid,'user','reg'); ?&gt;&quot; onsubmit=&quot;return validator(this)&quot;&gt;<br />
&lt;table border=&quot;0&quot; id=&quot;tbguest&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td width=&quot;100&quot; align=&quot;right&quot;&gt;&lt;label for=&quot;username&quot;&gt;&lt;span&gt;*&lt;/span&gt;用户名：&lt;/label&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;username&quot; id=&quot;username&quot; type=&quot;text&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot; onkeyup=&quot;value=value.replace(/[\W]/g,'') &quot;onbeforepaste=&quot;clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))&quot; onblur=&quot;return viliUser(this.value)&quot;/&gt;<br />
&lt;span id=&quot;authentication&quot; style=&quot;color:#FF0000;&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;&lt;label for=&quot;pwd&quot;&gt;&lt;span&gt;*&lt;/span&gt;密码：&lt;/label&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;pwd&quot; id=&quot;pwd&quot; type=&quot;password&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot; valid=&quot;required&quot; errmsg=&quot;6到16位密码!&quot; /&gt;<br />
&lt;span id=&quot;errMsg_pwd&quot; style=&quot;color:#FF0000&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;&lt;label for=&quot;repwd&quot;&gt;&lt;span&gt;*&lt;/span&gt;重复密码：&lt;/label&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;repwd&quot; id=&quot;repwd&quot; type=&quot;password&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot; valid=&quot;eqaul&quot; eqaulName=&quot;pwd&quot; errmsg=&quot;两次密码不同!&quot; /&gt;<br />
&lt;span id=&quot;errMsg_repwd&quot; style=&quot;color:#FF0000&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;&lt;label for=&quot;nickname&quot;&gt;昵称：&lt;/label&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;nickname&quot; id=&quot;nickname&quot; type=&quot;text&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;姓名：&lt;/td&gt;<br />
&lt;td &gt;&lt;input name=&quot;name&quot;  id=&quot;name&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $user-&gt;name?&gt;&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot;/&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;&lt;span&gt;*&lt;/span&gt;性别：&lt;/td&gt;<br />
&lt;td &gt;&lt;select name=&quot;sex&quot; style=&quot;width:45px;&quot;&gt;<br />
&lt;option value=&quot;1&quot;&gt;男&lt;/option&gt;<br />
&lt;option value=&quot;2&quot;&gt;女&lt;/option&gt;<br />
&lt;/select&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;QQ：&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;qq&quot; id=&quot;qq&quot; type=&quot;text&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot;/&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;MSN：&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;msn&quot; id=&quot;msn&quot; type=&quot;text&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot;/&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;&lt;span&gt;*&lt;/span&gt;Email：&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;email&quot; id=&quot;email&quot; type=&quot;text&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot;/&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;手机：&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;mtel&quot; id=&quot;mtel&quot; type=&quot;text&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot;/&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;地址：&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;address&quot; id=&quot;address&quot; type=&quot;text&quot; onMouseOver=&quot;onMOver(this)&quot; onMouseOut=&quot;onMOout(this)&quot;/&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&quot;right&quot;&gt;验证码：&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=&quot;checkcode&quot; id=&quot;checkcode&quot; size=&quot;8&quot; type=&quot;text&quot; onMouseOver=&quot;this.style.borderColor='#9ecc00'&quot; onMouseOut=&quot;this.style.borderColor='#D2D9D8'&quot; /&gt;<br />
&lt;img src=&quot;&lt;?php echo $tag['path.root']?&gt;/inc/verifycode.php&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;注册&quot; class=&quot;shlcms_reg&quot;/&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
&lt;/div&gt;</li>
<li>//会员模块的注册样式</li>
</ol>
</div>
<!--code代码的样式结束-->
<p>
  <label>样例展示</label>
</p>
<img src="../img/doclabel/user.jpg" /><br /><br />
<img src="../img/doclabel/user2.jpg" />
<div class="clr"></div>
<!--虚划线-->
<div class="clr"></div>
<label>备注说明</label>
<!--备注开始-->
<div class="strong">备注：此标签不支持系统后台可视化标签管理。【责任编辑：<a href="http://weibo.com/grysoft" target="_blank">grysoft</a>】</div>
<!--备注结束-->
  </div>
</div>
<div class="footer">&#169; 2012 <a href="http://www.doccms.com" target="_blank">稻壳网CMS</a></div>
</body>
</html>
